package common.utils
{
	public class XArray
	{
		public static function findDataIndex(arr:Array,data:*):int
		{
			var index:int=-1;
			var len:uint = arr.length;
			for(var i:int=0;i<len;i++)
			{
				if(arr[i] == data)
				{
					index = i;
					break;
				}
			}
			return index;
		}
	}
}